package behavior.mediator;

/**
 * @author dali
 * @date 2021-07-27 11:03
 * @Description 具体同事2
 */

public class ConcreteColleague2 extends Colleague {
    @Override
    public void receive() {
        System.out.println("第二个同事收到消息");
    }

    @Override
    public void send() {
        System.out.println("第二个同事发送消息");
        //自己不发送，请求中介者发送
        System.out.println("中介代替转发中...");
        mediator.relay(this);
    }
}
